package com.hm.prc1;

import java.beans.Customizer;
import java.util.function.Consumer;

public class Test2 {
    public static void main(String[] args) {
        Consumer<String> con=new Consumer<String>() {
            @Override
            public void accept(String s) {
                System.out.println( s);
            }
        };
        con.accept("谎言和誓言的区别是什么");
        Consumer<String> con1= s-> System.out.println( s);
        con1.accept("后悔没有谈一场轰轰烈烈的恋爱");
    }
    }

